package com.linsen.erp.admin.provider.feign;

import com.linsen.core.common.model.User;
import com.linsen.erp.admin.provider.vo.SystemUserVO;
import com.linsen.core.common.constant.ProviderConstant;
import com.linsen.core.common.util.Result;
import com.linsen.core.feign.constant.FeignConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@FeignClient(FeignConstant.ADMIN)
public interface IAdminFeignClient {

    @ApiOperation(value = "检查登录信息（账户密码）", response = SystemUserVO.class)
    @GetMapping(ProviderConstant.PROVIDER_LOGIN_CHECK_USERNAME)
    Result loginCheckByUsername(@RequestParam String username, @RequestParam String password);

    @ApiOperation(value = "检查登录信息（手机号）", response = SystemUserVO.class)
    @GetMapping(ProviderConstant.PROVIDER_LOGIN_CHECK_PHONE)
    Result loginCheckByPhone(@RequestParam String phone);

}
